package org.jeecg.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 任务结算详情
 * @Author: yfkj
 * @Date:   2023-02-20
 * @Version: V1.0
 */
@ApiModel(value="caishui_task_settle_item对象", description="任务结算详情")
@Data
@TableName("caishui_task_settle_item")
public class CaishuiTaskSettleItem implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

	/**结算任务ID*/
    @ApiModelProperty(value = "结算任务ID")
    private String mainId;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

	/**编码*/
	@Excel(name = "编码", width = 15)
    @ApiModelProperty(value = "编码")
    private String code;

	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String name;

	/**证件类型(1:身份证2:港澳台通行证3：护照4：军官证)*/
	@Excel(name = "证件类型", width = 15, dicCode = "id_card_type")
    @ApiModelProperty(value = "证件类型")
    @Dict(dicCode = "id_card_type")
    private Integer idCardType;

	/**证件号码*/
	@Excel(name = "证件号码", width = 15)
    @ApiModelProperty(value = "证件号码")
    private String idCard;

	/**手机号码*/
	@Excel(name = "手机号码", width = 15)
    @ApiModelProperty(value = "手机号码")
    private String phone;

	/**下发类型(OTHERBANK：银行卡，ALIPAY：支付宝，WECHAT：微信)*/
	@Excel(name = "下发类型", width = 15, dicCode = "bank_card_type")
    @ApiModelProperty(value = "下发类型")
    @Dict(dicCode = "bank_card_type")
    private String type;

	/**账号(银行卡号或支付宝邮箱账号)*/
	@Excel(name = "账号(银行卡号或支付宝邮箱账号)", width = 15)
    @ApiModelProperty(value = "账号(银行卡号或支付宝邮箱账号)")
    private String bankCard;

	/**银行名称*/
	@Excel(name = "银行名称", width = 15)
    @ApiModelProperty(value = "银行名称")
    private String bankName;

	/**银行卡开户行名称*/
	@Excel(name = "银行卡开户行名称", width = 15)
    @ApiModelProperty(value = "银行卡开户行名称")
    private String accountName;

	/**下发金额(单位元)*/
	@Excel(name = "下发金额(单位元)", width = 15)
    @ApiModelProperty(value = "下发金额(单位元)")
    private Double money;

    /**服务费*/
    @ApiModelProperty(value = "服务费")
    private Double serviceFee;

    /**服务费差额（一档税率到二档税率）*/
    @ApiModelProperty(value = "服务费差额（一档税率到二档税率）")
    private Double serviceFeeDiffer;

	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

	/**下发时间*/
	@Excel(name = "下发时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下发时间")
    private Date issuedTime;

    /**银行交易状态*/
    @Excel(name = "银行交易状态", width = 15)
    @ApiModelProperty(value = "银行交易状态")
    private String bankFeedbackStscod;

	/**银行失败代码*/
	@Excel(name = "银行失败代码", width = 15)
    @ApiModelProperty(value = "银行失败代码")
    private String bankFeedbackCode;

	/**银行失败原因*/
	@Excel(name = "银行失败原因", width = 15)
    @ApiModelProperty(value = "银行失败原因")
    private String bankFeedbackMessage;

    /**银行回馈时间*/
    @Excel(name = "银行回馈时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "银行回馈时间")
    private Date bankFeedbackTime;

    /**电子回单*/
	@Excel(name = "电子回单", width = 15)
    @ApiModelProperty(value = "电子回单")
    private String electronicReceipt;

	/**状态：0-待下发，1-待回馈，2-已完成，3-账号错误，4-未签约*/
	@Excel(name = "状态", width = 15, dicCode = "caishui_task_settle_item_status")
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "caishui_task_settle_item_status")
    private Integer status;
}
